<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function clickMe(){
				var input = document.getElementById("inputId");
				console.log(input);
				var inputs = document.getElementsByTagName("input");
				console.log(inputs);
				alert("666");
			}
		</script>
	</head>
	<body>
		<input type="text" id = "inputId" value=" hello js" /><br />
		<input type="text" id = "inputId2" value=" hello js!" /><br />
		<input type="text" id = "inputId2" value=" hello jds!" /><br />
		
		<button onclick="clickMe()">点我</button>
	</body>
</html>
